import { getRequest } from "@/utils/request";

// 根据经纬度获取城市详细定位
let getCityAddress = (geohash)=> getRequest(`/v2/pois/${geohash}`);
// 获取外卖分类
let getFoodsCate = ()=>getRequest(`/v2/index_entry`)
//获取店铺列表
let getShopList = (data)=>getRequest(`/shopping/restaurants`,data)


// 获取商品详情页的数据列表
let getFoodList = (restaurant_id)=>getRequest(`/shopping/v2/menu${restaurant_id}`)
export  {
    getCityAddress,
    getFoodsCate,
    getShopList,
    getFoodList
}